package com.dailygreetings.dailygreetings.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.time.LocalDate;

/**
 * @BelongsProject: daily-greetings
 * @BelongsPackage: com.dailygreetings.dailygreetings.config
 * @Author: shanzhengfei
 * @CreateTime: 2024-11-21  18:11
 * @Description: 基础配置信息
 * @Version: 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "base")
public class BaseConfig {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate babyDays;
    private String anniversary;
    private String huangliKey;
}
